<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="ssm" uri="http://ssm.elangzhi.com/jsp/tag/functions" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%--
Created by GaoXiang
Date: 2018-09-27 11:57:32 星期四
Version: 1.0
泊位信息列表
--%>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="zh" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8"/>
    <title>泊位信息管理 - 后台服务中心</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport"/>
    <meta content="泊位信息管理列表" name="description"/>
    <meta content="GaoXiang" name="author"/>
    <jsp:include page="../body/link-page.jsp"/>
</head>
<!-- END HEAD -->
<body class="page-content-white  fade-in-up">

<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN PAGE TOOLS-->
    <!--查询条件示例 使用时取消hide样式-->
    <div class="portlet light hide">
        <div class="portlet-title">
            <div class="caption">
                <i class="icon-paper-plane font-green-haze"></i>
                <span class="caption-subject bold font-green-haze uppercase">搜索</span>
                <span class="caption-helper">点击右侧搜索按钮开始检索</span>
            </div>
            <div class="tools">
                <a href="javascript:void(0);" class="collapse" data-original-title="收起" title="收起"></a>
                <a href="javascript:void(0);" class="fullscreen" data-original-title="全屏" title="全屏"></a>
            </div>
        </div>
        <div class="portlet-body">
            <div class="form-inline" role="form" id="table-param">
                <div class="form-group form-md-line-input has-success">
                    <input type="text" class="form-control" name="parkName" value="" autofocus placeholder="所属停车场">
                    <div class="form-control-focus"></div>
                </div>
                <div class="form-group form-md-line-input has-success">
                    <input type="text" class="form-control" name="berthCode" value="" autofocus placeholder="泊位编号">
                    <div class="form-control-focus"></div>
                </div>
                <div class="form-group form-md-line-input has-success">
                    <select class="form-control" name="type" >
                        <option value="">泊位类型</option>
                        <option value="0">小车车位</option>
                        <option value="1">大车车位</option>
                        <option value="2">智能车位</option>
                    </select>
                    <div class="form-control-focus"></div>
                </div>
                <div class="form-group form-md-line-input has-success">
                    <select class="form-control" name="status" >
                        <option value="">车位状态</option>
                        <option value="0">正常</option>
                        <option value="1">包期</option>
                        <option value="2">包期未生效</option>
                        <option value="3">固定车</option>
                        <option value="4">已占用</option>
                    </select>
                    <div class="form-control-focus"></div>
                </div>
                <button class="btn btn-success btn-tools-search"><i class="icon-magnifier"></i> 搜索</button>
                <button class="btn btn-danger btn-tools-reset" data-url-param="&page=1&size=10"><i class="icon-reload"></i> 重置
                </button>
            </div>
        </div>
    </div>
    <!-- END PAGE TOOLS-->

    <!-- BEGIN PAGE TABLE-->
    <div class="portlet light">
        <div class="portlet-title">
            <div class="caption">
                <i class="icon-speech  font-blue-hoki"></i>
                <span class="caption-subject font-blue-hoki">数据表</span>
            </div>

            <div class="tools">
                <a href="" class="collapse" data-original-title="" title=""> </a>
                <a href="" class="reload btn-tools-refresh" data-original-title="" title=""> </a>
                <a href="" class="fullscreen" data-original-title="" title=""> </a>
            </div>
        </div>
        <div class="portlet-body table-responsive">
            <div class="table-scrollable">
                <table class="table table-bordered table-hover" id="table">
                    <thead>
                    <tr>
                        <th>所属停车场</th>
                        <th>车位编号</th>
                        <th>车位类型</th>
                        <th>车位状态</th>
                        <th>车牌号码</th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach var="item" items="${pageInfo}" varStatus="status">
                        <tr>
                            <td>${item.parkName}</td>
                            <td>${item.berthCode}</td>
                            <c:if test="${item.type==0}">
                                <td>
                                    <input type="radio" checked="checked" name="ra_${item.id}" disabled>小车
                                    <input type="radio" name="ra_${item.id}" disabled >大车
                                    <input type="radio" name="ra_${item.id}" disabled>智能车位
                                </td>
                            </c:if>
                            <c:if test="${item.type==1}">
                                <td><input type="radio"  name="ra_${item.id}" disabled>小车
                                    <input type="radio" checked="checked" name="ra_${item.id}" disabled>大车
                                    <input type="radio"  name="ra_${item.id}" disabled>智能车位
                                </td>
                            </c:if>
                            <c:if test="${item.type==2}">
                                <td><input type="radio"  name="ra_${item.id}" disabled>小车
                                    <input type="radio"  name="ra_${item.id}" disabled>大车
                                    <input type="radio" checked="checked" name="ra_${item.id}" disabled>智能车位
                                </td>
                            </c:if>
                            <td>
                                <c:if test="${item.status==0}">正常</c:if>
                                <c:if test="${item.status==1}">包期</c:if>
                                <c:if test="${item.status==2}">包期未生效</c:if>
                                <c:if test="${item.status==3}">固定车</c:if>
                                <c:if test="${item.status==4}">已占用</c:if>
                            </td>
                            <td>${item.plateNo}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>
